﻿using UnityEngine;
using System.Collections;

[USequencerEvent("信号/发送消息")]
public class USSendMessageEvent : USEventBase 
{
	public GameObject receiver = null;
	public string action = "OnSignal";
	
	public override void FireEvent()
	{
		if(!Application.isPlaying)
			return;
		
		if (receiver)
			receiver.SendMessage (action);
		else
			Debug.LogWarning ("没有消息接受对象");
	}
	
	public override void ProcessEvent(float deltaTime)
	{
		
	}
}
